package com.usian.feign;

import com.usian.pojo.Student;
import com.usian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "eureka-provider")
public interface UserFeign {

    @RequestMapping("user/{id}")
    public User getUser(@PathVariable Integer id);

    @RequestMapping("consumer/findAllStu")
    public List<Student> finAllStu();

}
